<?php
declare(strict_types=1);

namespace App\Models\Ai\Flag;

use App\Models\BaseModel;
use Illuminate\Database\Eloquent\Relations\BelongsTo;

class Prompt extends BaseModel
{
    protected $table = "flag_studio_prompt";

    protected $fillable = [
        "uid",
        "title",
        "is_show",
        "sort",
        "path",
        "url",
        "style_uid",
        "use_count",
    ];

    public function style(): BelongsTo
    {
        return $this->belongsTo(Style::class, "style_uid", "uid");
    }
}
